:root{
  --bg: #f3f6fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --nav: #1f2937;
  --primary: #2f66b3;
  --primary-pressed: #255395;
  --radius: 12px;
  --shadow: 0 6px 16px rgba(16,24,40,.08);
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto; 
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
img{
    width: 50px;
    height: 50px
}
.nav{
  background: var(--nav);
  color: #fff;
}
.nav__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand{ font-weight: 700; }
.links a{
  color: #e5e7eb;
  text-decoration: none;
  margin-left: 22px;
  font-weight: 500;
}
.links a:hover{ color:#ffffff; }

.wrap{
  max-width: 1200px;
  margin: 16px auto 24px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1.3fr .8fr; 
  gap: 24px;
}

.content{
  display: grid;
  gap: 18px;
}
.card{
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}
.card__title{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}
.card__text{
  margin: 0 0 14px;
  color: var(--muted);
}
.btn{
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:hover{ background: var(--primary-pressed); }
.btn:active{ transform: translateY(1px); }

.sidebar{
  background: #eceff3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.sidebar h3{ margin: 4px 0 10px; }

.site-footer{
  background: var(--nav);
  color: #d1d5db;
  padding: 18px;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 960px){
  .wrap{ grid-template-columns: 1fr; }
  .sidebar{ order: 2; }
  .content{ order: 1; }
}
